#include"include.h"
char *practice = "The quick brown fox jumped over the lazy dog.";

int main()
{
   pthread_t diskio_thread;
   filemanage_t *manager = filemanageInit();
   if(pthread_create(&diskio_thread, NULL, (void * (*)(void *)) filemanageRun, manager))
      fprintf(stderr, "An error occurred spawning the thread.");

   int l = strlen(practice);
   filemanageWriteData(manager, "test.txt", 0, practice, l);
   filemanageWriteData(manager, "test.txt", 2*l, practice, l);
   filemanageWriteData(manager, "test.txt", l, practice, l);

   while(1) sleep(60000);

   return 0;
}
